package com.beiding.listener;

import com.beiding.dao.OrderDao;
import com.beiding.pojo.payload.Payload;
import com.beiding.service.impl.MessageSender;
import com.beiding.timeout.bean.TimeShaft;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Delete extends TimeoutListener {
    protected Delete(OrderDao orderDao, TimeShaft<String> timeShaft) {
        super(orderDao, timeShaft, "delete");
    }

    @Override
    public void run(String id) {
        orderDao.deleteById(id);
    }
}

